import java.util.ArrayList;
import java.util.List;

class Movie {
    private String name;
    private String director;
    private List<String> actors;
    private String description;
    private int duration; // 分钟
    private int rating;   // 1-10分
    private boolean isShowing;

    public Movie(String name, String director, String description, int duration, int rating, boolean isShowing) {
        this.name = name;
        this.director = director;
        this.actors = new ArrayList<>();
        this.description = description;
        this.duration = duration;
        this.rating = rating;
        this.isShowing = isShowing;
    }

    public void addActor(String actor) {
        actors.add(actor);
    }

    public String getName() {
        return name;
    }

    public String getDirector() {
        return director;
    }

    public List<String> getActors() {
        return actors;
    }

    public String getDescription() {
        return description;
    }

    public int getDuration() {
        return duration;
    }

    public int getRating() {
        return rating;
    }

    public boolean isShowing() {
        return isShowing;
    }

    public void setShowing(boolean showing) {
        isShowing = showing;
    }

    @Override
    public String toString() {
        return "电影信息: \n" +
                " 片名: " + name + "\n" +
                " 导演: " + director + "\n" +
                " 主演: " + actors + "\n" +
                " 简介: " + description + "\n" +
                " 时长: " + duration + " 分钟\n" +
                " 评分: " + rating + "/10\n" +
                " 状态: " + (isShowing ? "正在上映" : "未上映");
    }
}